/**
 * Copyright &copy; 2016 CNJSON All rights reserved.
 */
package com.hongsuan.pplive.modules.live.entity;

import org.hibernate.validator.constraints.Length;

import com.cnjson.db.persistence.DataEntity;

/**
 * 单表生成Entity
 * @author cgli
 * @version 2016-04-18
 */
public class LiveRedEnvelope extends DataEntity<LiveRedEnvelope> {

	private static final long serialVersionUID = 1L;
	private String amount;		// 发红包的金额
	private String count;		// 发红包份数

	public LiveRedEnvelope() {
		super();
	}

	public LiveRedEnvelope(String id){
		super(id);
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	@Length(min=0, max=11, message="发红包份数长度必须介于 0 和 11 之间")
	public String getCount() {
		return count;
	}

	public void setCount(String count) {
		this.count = count;
	}

}